package com.demo.exception;

public class RestException extends RuntimeException {
	private int code;
	private boolean success;
	private String msg;
	
	public RestException(int code, boolean success, String msg) {
		super();
		this.code = code;
		this.success = success;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
}
